#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
char* my_strncat(char* destination, const char* source, size_t num)
{
	assert(destination && source);
	char* ptr = destination;
	while (*destination)
	{
		destination++;
	}
	while (*source&&num--)
	{
		*destination++ = *source++;
	}
	*destination = '\0';
	return ptr;
}
int main()
{
	char arr1[40] = "You are rignt ";
	char arr2[] = "But you make a mistake";
	printf(my_strncat(arr1, arr2, 3));
	return 0;
}